package com.eco.fanliapp.dao;

import com.eco.fanliapp.entity.SyTljGoodsfree;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 淘礼金免单商品 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2019-11-27
 */
public interface SyTljGoodsfreeMapper extends BaseMapper<SyTljGoodsfree> {

    List<SyTljGoodsfree> selectTljGoodsfreeList(@Param("date") String date);

    int insertTljGoodsfree(SyTljGoodsfree syTljGoodsfree);

    int deleteTljGoodsfree(Integer tableId);

    SyTljGoodsfree selectTljGoodsfreeByItemId(Long itemId);

    void updateNumById(Integer tableId);

    SyTljGoodsfree selectTljGoodsfreeByTableId(Integer tableId);
}
